<?php
/**
 * Created by PhpStorm.
 * User: Jarvan
 * Date: 2018/1/3
 * Time: 下午2:50
 */
// 如果接收到邮箱参数则发送邮件
if (isset($_REQUEST['email'])){
    $email = @$_POST['email'] ? $_POST['email'] : '';
    $subject = @$_POST['subject'] ? $_POST['subject'] : '';
    $message = @$_POST['message'] ? $_POST['message'] : '';
    echo $email."-".$subject."-".$message;
    mail("532547613@qq.com", $subject,
        $message, "From:" . $email);
    echo "邮件发送成功";
}